import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { FeeBillComponent } from './fee-bill/fee-bill.component';
import { FeeEnquiryComponent } from './fee-enquiry.component';
import { OweFeeComponent } from './owe-fee/owe-fee.component';
import { PayListComponent } from './pay-list/pay-list.component';
import { QueryComponent } from './query/query.component';
import { BaoduListComponent } from './self-baodu/baodu-list/baodu-list.component';
import { SelfBaoduComponent } from './self-baodu/self-baodu.component';
import { FeeChartComponent } from './fee-chart/fee-chart.component';
import { EInvoiceComponent } from './e-invoice/e-invoice.component';
import { WaterUsageComponent } from './water-usage/water-usage.component';

const routes: Routes = [
  { path: 'fee-enquiry', component: FeeEnquiryComponent, data: { breadcrumb: '费用查缴' },
    children: [
      { path: 'query/:type', component: QueryComponent, data: { breadcrumb: '费用查询' },
      },
      { path: 'fee-bill', component: FeeBillComponent, data: { breadcrumb: '电子账单' } },
      { path: 'owe-fee', component: OweFeeComponent, data: { breadcrumb: '欠费缴纳' }, },
      { path: 'fee-chart', component: FeeChartComponent, data: { breadcrumb: '用水折线' }, },
      { path: 'query', component: OweFeeComponent, data: { breadcrumb: '缴费' } },
      { path: 'pay-list', component: PayListComponent, data: { breadcrumb: '缴费记录' } },
      { path: 'water-usage', component: WaterUsageComponent, data: { breadcrumb: '用水情况' } },
      { path: 'e-invoice', component: EInvoiceComponent, data: { breadcrumb: '电子发票' } },
      { path: 'baodu', component: SelfBaoduComponent, data: { breadcrumb: '自报行度' } },
      { path: 'baodu-li', component: BaoduListComponent, data: { breadcrumb: '自报行度' } },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class FeeEnquiryRoutingModule { }
